<template>
	<view class="u-flex u-row-between">
		<view class="u-flex u-row-left">
			<view style="width: 80rpx;height: 80rpx;" v-for="(item,index) in info.infoList" :class="{'onb':index>0}">
				<u-image width="80rpx" height="80rpx" shape="circle" :src="item.avatar" />
			</view>
		</view>
		<view>
			<view class="btn" @click="click()">去拼单</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "pingItem",
		props: {
			info: {
				type: Object,
				default: () => {
					return {}
				}
			},

		},
		data() {
			return {

			}
		},
		methods: {
			click() {
				this.$emit('success', this.info.id)
			}
		},
	}
</script>
<style scoped lang="scss">
	.btn {
		color: #FFF;
		font-size: 28rpx;
		background-color: #ec1010;
		line-height: 50rpx;
		padding: 0 20rpx;
		border-radius: 12rpx;
	}

	.onb {
		margin-left: -20rpx;
	}
</style>
